package com.rtx.job.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface EdiJobMapper {

    /**
     * 执行SQL返回List
     * @param sql sql
     * @return 返回List
     */
    @Select("${sql}")
    List<Map<String, Object>> executeQueryListSql(@Param("sql") String sql);

    /**
     * 执行SQL返回MAP
     * @param sql sql
     * @return 返回MAP
     */
    @Select("${sql}")
    Map<String, Object> executeQueryMapSql(@Param("sql") String sql);

    /**
     * 执行SQL返回Object
     * @param sql sql
     * @return 返回Object
     */
    @Select("${sql}")
    Object executeQueryObjectSql(@Param("sql") String sql);

    /**
     * 执行SQL返回Object
     * @param sql sql
     * @return 返回Object
     */
    @Select("${sql}")
    Object executeSql(String sql);
}
